<h3>Account Information</h3>

<table align="center">
	<tr>
		<td>First name:</td>
		<td><input type="text" name="firstName" value="${sessionScope.account.firstName}"/></td>
	</tr>
	<tr>
		<td>Last name:</td>
		<td><input type="text" name="lastName" value="${sessionScope.account.lastName}"/></td>
	</tr>
	<tr>
		<td>Email:</td>
		<td><input type="text" size="40" name="email" value="${sessionScope.account.email}"/></td>
	</tr>
	<tr>
		<td>Phone:</td>
		<td><input type="text" name="phone" value="${sessionScope.account.phone}"/></td>
	</tr>
	<tr>
		<td>Address 1:</td>
		<td><input type="text" size="40" name="address1" value="${sessionScope.account.address1}"/></td>
	</tr>
	<tr>
		<td>Address 2:</td>
		<td><input type="text" size="40" name="address2" value="${sessionScope.account.address2}"/></td>
	</tr>
	<tr>
		<td>City:</td>
		<td><input type="text" name="city" value="${sessionScope.account.city}"/></td>
	</tr>
	<tr>
		<td>State:</td>
		<td><input type="text" size="4" name="state" value="${sessionScope.account.state}"/></td>
	</tr>
	<tr>
		<td>Zip:</td>
		<td><input type="text" size="10" name="zip" value="${sessionScope.account.zip}"/></td>
	</tr>
	<tr>
		<td>Country:</td>
		<td><input type="text" size="15" name="country" value="${sessionScope.account.country}"/></td>
	</tr>
</table>

<h3>Profile Information</h3>

<table align="center">
	<tr>
		<td>Language Preference:</td>
		<td style="text-align:center;vertical-align:middle;"><select name="languagePreference">
			<c:if test="${sessionScope.account == null}">
				<option value="english">english</option>
				<option value="japanese">japanese</option>
			</c:if>
			<c:if test="${sessionScope.account != null}">
				<c:if test="${sessionScope.account.languagePreference eq 'english'}">
					<option selected="selected" value="english">english</option>
					<option value="japanese">japanese</option>
				</c:if>
				<c:if test="${sessionScope.account.languagePreference eq 'japanese'}">
					<option value="english">english</option>
					<option selected="selected" value="japanese">japanese</option>
				</c:if>
			</c:if>

		</select></td>
	</tr>
	<tr>
		<td>Favourite Category:</td>
		<td style="text-align:center;vertical-align:middle;"><select name="favouriteCategoryId">
			<c:if test="${sessionScope.account == null}">
				<option value="FISH">FISH</option>
				<option value="DOGS">DOGS</option>
				<option value="REPTILES">REPTILES</option>
				<option value="CATS">CATS</option>
				<option value="BIRDS">BIRDS</option>
			</c:if>
			<c:if test="${sessionScope.account != null}">
				<c:if test="${sessionScope.account.favouriteCategoryId eq 'FISH'}">
					<option value="FISH" selected="selected">FISH</option>
					<option value="DOGS">DOGS</option>
					<option value="REPTILES">REPTILES</option>
					<option value="CATS">CATS</option>
					<option value="BIRDS">BIRDS</option>
				</c:if>
				<c:if test="${sessionScope.account.favouriteCategoryId eq 'DOGS'}">
					<option value="FISH">FISH</option>
					<option value="DOGS" selected="selected">DOGS</option>
					<option value="REPTILES">REPTILES</option>
					<option value="CATS">CATS</option>
					<option value="BIRDS">BIRDS</option>
				</c:if>
				<c:if test="${sessionScope.account.favouriteCategoryId eq 'REPTILES'}">
					<option value="FISH">FISH</option>
					<option value="DOGS">DOGS</option>
					<option value="REPTILES" selected="selected">REPTILES</option>
					<option value="CATS">CATS</option>
					<option value="BIRDS">BIRDS</option>
				</c:if>
				<c:if test="${sessionScope.account.favouriteCategoryId eq 'CATS'}">
					<option value="FISH">FISH</option>
					<option value="DOGS">DOGS</option>
					<option value="REPTILES">REPTILES</option>
					<option value="CATS" selected="selected">CATS</option>
					<option value="BIRDS">BIRDS</option>
				</c:if>
				<c:if test="${sessionScope.account.favouriteCategoryId eq 'BIRDS'}">
					<option value="FISH">FISH</option>
					<option value="DOGS">DOGS</option>
					<option value="REPTILES">REPTILES</option>
					<option value="CATS">CATS</option>
					<option value="BIRDS" selected="selected">BIRDS</option>
				</c:if>
			</c:if>
		</select></td>
	</tr>
	<tr>
		<td>Enable MyList</td>

		<td style="text-align:center;vertical-align:middle;">
			<c:if test="${sessionScope.account.listOption}">
				<input type="checkbox" name="listOption" value="true" checked="checked"/>
			</c:if>
			<c:if test="${sessionScope.account.listOption eq false}">
				<input type="checkbox" name="listOption" value="true"/>
			</c:if>
			<c:if test="${sessionScope.account == null}">
				<input type="checkbox" name="listOption" value="true" checked="checked"/>
			</c:if>
		</td>
	</tr>
	<tr>
		<td>Enable MyBanner</td>

		<td style="text-align:center;vertical-align:middle;">
			<c:if test="${sessionScope.account.bannerOption}">
				<input type="checkbox" name="bannerOption" value="true" checked="checked"/>
			</c:if>
			<c:if test="${sessionScope.account.bannerOption eq false}">
				<input type="checkbox" name="bannerOption" value="true"/>
			</c:if>
			<c:if test="${sessionScope.account == null}">
				<input type="checkbox" name="bannerOption" value="true" checked="checked"/>
			</c:if>
		</td>
	</tr>

</table>
